package cn.iocoder.yudao.module.erp.controller.admin.invoice.vo;

import cn.iocoder.yudao.module.erp.dal.dataobject.purpurchaseorder.PurPurchaseOrderDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - ERP 发票新增/修改 Request VO")
@Data
public class InvoiceSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25645")
    private Long id;

    @Schema(description = "发票编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "发票编号不能为空")
    private String invoiceNumber;

    @Schema(description = "供应商编号", example = "19008")
    private Long supplierId;

    @Schema(description = "发票金额，单位：元", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发票金额，单位：元不能为空")
    private BigDecimal invoiceValue;

    @Schema(description = "附件 URL", example = "https://www.iocoder.cn")
    private String fileUrl;

    @Schema(description = "订单集合", example = "")
    private List<PurPurchaseOrderDO> purPurchaseOrderDOS;


}